<?php
$this->breadcrumbs=array(
	'Emails'=>array('index'),
	$model->mail_id,
);

$this->menu=array(
	array('label'=>'List Email', 'url'=>array('index')),
	array('label'=>'Create Email', 'url'=>array('create')),
	array('label'=>'Update Email', 'url'=>array('update', 'id'=>$model->mail_id)),
	array('label'=>'Delete Email', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->mail_id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Email', 'url'=>array('admin')),
);
?>

<h1>View Email #<?php echo $model->mail_id; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'mail_id',
		'mail_name',
		'mail_subject',
		array(
			'name'=>'mail_body',
			'value'=>$model->mail_body
		),
		array(
			'name'=>'mail_created',
			'value'=>date('Y-m-d H:i:s', $model->mail_created)
		),		
		array(
			'name'=>'mail_ip',
			'value' => long2ip($model->mail_ip)
		),
		'mail_email',
		'mail_isread',
		'mail_isreply',
		'mail_reply',
	),
)); ?>
<hr />
<?php echo $model->mail_body;?>
